package com.bai.Service;

import com.bai.Pojo.Emp;
import com.bai.Pojo.Post;
import com.bai.dto.PageLimitDto;
import com.bai.dto.PublicResponseBody;

public interface PostService {
    //添加
    PublicResponseBody addPost(Post post);

    //修改信息
    PublicResponseBody UpdatePost(Post post);


    //根据ID删除
    PublicResponseBody deletePostById(Integer id);

    //查询所有
    PageLimitDto QueryAll(Integer offset, Integer limit);

    //根据id获取Emp详情
    PublicResponseBody getPost(Integer id);
}

